<?php defined('SYSPATH') OR die('No direct access allowed.');
	$arrMatriculas = ( isset($arrMatriculas) )? $arrMatriculas: array();

?>
<table style="font-size: 18px; border: 1px solid black; border-collapse: collapse; width: 100%;" >
	<thead>
		<tr align="left" >
			<th width="15%">
				<strong>Inscri&ccedil;&atilde;o</strong>
			</th>
			<th>
				<strong>Logradouro</strong>
			</th>
			<th>
				<strong>--</strong>
			</th>
		</tr>
	</thead>
	<tbody>
	<?php
		if ( isset($arrMatriculas[0]['intCodErro']) ) {
			echo '<tr>';
			echo	'<td colspan="4" >';
			echo		$arrMatriculas[0]['nomeprop'];
			echo	'</td>';
			echo '</tr>';
		} else {
			$par = true;
			foreach ($arrMatriculas as $arrLinha) {
				$strLink  = 'iptu/detalharByInscricao/';
				$strLink .= $arrLinha['INSCRICAO_IMOV'] . '/';
				$strLink .= $arrLinha['ID_TRANSACAO'];

				$cor = ( $par )? 'bgcolor="d4d4d4"': '';
				$par = !$par;
				echo '<tr '. $cor .' >';
				echo	'<td title="num.">';
				echo		html::anchor($strLink, $arrLinha['INSCRICAO_IMOV'] );
				echo	'</td>';
				echo	'<td title="compl.">';
				echo		html::anchor($strLink, $arrLinha['logr'] );
				echo	'</td>';
				echo	'<td>';
				echo		html::anchor($strLink, html::image('img/ico_lupa.gif', array('width'=>'20px','height'=>'20px')) );
				echo	'</td>';
				echo '</tr>';
			}
		}
	?>
	</tbody>
</table>
